#ifndef system_win32_thread_h
#define system_win32_thread_h

#include "..\include\thread.h"

#include <Windows.h>

namespace sys{
	class win32_lock_cs : public lock
	{
	public:
		win32_lock_cs();

		~win32_lock_cs();

		virtual dword	release();

		virtual bool do_lock();

		virtual bool try_lock();

		virtual bool is_locked();

		virtual void unlock();

	protected:
		CRITICAL_SECTION m_cs;
	};
}
#endif	//system_win32_thread_h
